<!DOCTYPE html>
<html lang="en">
{include file="public/head" /}
<body class="nav-md">
<div class="container body">
    <div class="main_container">
        <!-- menu -->
        {include file="public/menu" /}
        <!-- menu -->
        <!-- top navigation -->
        {include file="public/top" /}
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>订单管理</h3>
                    </div>
                </div>
                <div class="clearfix"></div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <!--content-->
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>添加订单
                                    <small>add order</small>
                                </h2>

                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <br>
                                <form data-parsley-validate="" class="form-horizontal form-label-left" novalidate=""
                                      enctype="multipart/form-data" method="post" action="{:url('admin/Order/add')}">
                                    <input type="hidden" name="member_id" class="form-control member_id">
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">店员名称 <span
                                                class="required">*</span>
                                        </label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <div class="input-group">
                                                <input type="text" name="member_name" required="required"
                                                       class="form-control col-md-4 col-xs-6 member_name">
                                                <span class="input-group-btn">
                            <button type="button" class="btn btn-success check_name_button">验证</button>
                          </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">订单类型：</label>
                                        <div class="col-sm-2">
                                            {UntilTag:ordertype type=""/}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">服务类型：</label>
                                        <div class="col-sm-2">
                                            {UntilTag:servicetype type=""/}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">服务项目：</label>
                                        <div class="col-sm-2">
                                            <select class="form-control item_type" name="item" style="width:auto;">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">价格 <span
                                                class="required">*</span>
                                        </label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="number" name="money" required="required"
                                                   class="form-control col-md-7 col-xs-12 money">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">订单来源：</label>
                                        <div class="col-sm-2">
                                            {UntilTag:orderorigin type="1"/}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">联系方式 <span
                                                class="required">*</span>
                                        </label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" name="user_contact" required="required"
                                                   class="form-control col-md-7 col-xs-12" value="qq/wechat">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">客户留言</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <textarea name="user_message"
                                                      class="form-control col-md-7 col-xs-12"></textarea>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">订单备注</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <textarea name="remark" class="form-control col-md-7 col-xs-12"></textarea>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">订单状态：</label>
                                        <div class="col-sm-2">
                                            {UntilTag:orderstatus id="0" status="3"/}
                                        </div>
                                    </div>

                                    <div class="ln_solid"></div>
                                    <div class="form-group">
                                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                            <button type="submit" class="btn btn-success">创建订单</button>
                                            <button class="btn btn-primary" type="reset">重置</button>
                                        </div>
                                    </div>

                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /page content -->
        <!-- footer content -->
        {include file="public/footer" /}
        <!-- /footer content -->
    </div>
</div>
<!-- script -->
<!-- jQuery -->
<script src="__ADMIN__/vendors/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="__ADMIN__/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="__ADMIN__/vendors/fastclick/lib/fastclick.js"></script>
<!-- NProgress -->
<script src="__ADMIN__/vendors/nprogress/nprogress.js"></script>
<!-- Custom Theme Scripts -->
<script src="__ADMIN__/build/js/custom.min.js"></script>
<!-- script -->
<script src="__ADMIN__/vendors/layer/layer.min.js"></script>
<script src="__ADMIN__/build/js/app.js"></script>
</body>
<script type="text/javascript">
    var get_member_url = "{:url('admin/Member/getMemberByName')}";
    var get_item_url = "{:url('admin/Api/getServiceItem')}";

    $(function () {
        getServiceItem(0);
    })
</script>
</html>
